// 引入less文件
import '../src/less/index'

import adminController from '$con/adminController'
import advController from '$con/advController'
import indexController from '$con/indexController'
import loginController from '$con/loginController'
import './constants'

ROUTER.route(INDEX, indexController())

// 二级路由
ROUTER.route(ADMINLIST, adminController())
// 广告列表
ROUTER.route(ADVLIST, advController())
// 登录页
ROUTER.route(LOGIN,loginController())

ROUTER.route('*', (req, res, next) => {
    // 重定向
    res.redirect(LOGIN)
})